package org.ccay.hypertext;

import org.ccay.hypertext.enumerable.HyperCategoryEnum;

/**
 * 静态文本资源
 * @author chaowangbang
 *
 */
public class StaticResource extends HyperText{

	private static final long serialVersionUID = 20171210L;
	
	public StaticResource(){
		super.setCategory(Integer.parseInt(HyperCategoryEnum.StaticResource.getValue()));
	}
	
//	@Override
//	public void setCategory(HyperCategoryEnum category) {
//		throw new IllegalAccessError();
//	}
	
	@Override
	public void setCategory(Integer category) {
		throw new IllegalAccessError();
	}
	
	/**映射URL**/
	private String mappingUrl;

	public String getMappingUrl() {
		return mappingUrl;
	}

	public void setMappingUrl(String mappingUrl) {
		super.getAddtionProperty().put("mappingUrl", mappingUrl);
		this.mappingUrl = mappingUrl;
	}

}
